<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>后台管理</title>
    <link rel="stylesheet" type="text/css" th:href="@{/layui/css/layui.css}">
    <link rel="stylesheet" type="text/css" th:href="@{/css/userInfo.css}">
    <script type="text/javascript" src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    <script type="text/javascript" th:src="@{/layui/layui.js}"></script>
    <script type="text/javascript" th:src="@{/js/userInfo.js}"></script>

</head>
<body>
<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-card-body">
            <div class="layui-form toolbar">
                <div class="layui-form-item">

                    <div class="layui-inline">
                        <select id="userSltKey">
                            <option value="">搜索条件</option>
                            <option value="userName">用户名</option>
                            <option value="status">状态</option>
                            <option value="rolename">角色</option>
                        </select>
                    </div>

                    <div class="layui-inline">
                        <input id="userEdtSearch" class="layui-input" type="text" placeholder="输入关键字"/>
                    </div>
                    <div class="layui-inline">

                    </div>
                    <div class="layui-inline">
                        <button id="userBtnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>

                        <button id="userBtnAdd" class="layui-btn icon-btn"><i class="layui-icon">&#xe608;</i>新增</button>

                        <button id="userBtnpage" class="layui-btn  icon-btn"> <i class="layui-icon">&#x1002;</i>刷新</button>

                    </div>
                </div>
            </div>
            <table id="userdata" lay-filter="userdata"></table>

        </div>
    </div>

</div>

</body>
<script>

</script>
<script type="text/html" id="barDemo">
    {{# if(d.roleId !=3){ }}
    {{# if(d.status=='0'){ }}
    <a class=" layui-btn layui-btn-normal layui-btn-xs" lay-event="modify" >修改</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
    {{# } else if(d.status=='1'){ }}
    <a class=" layui-btn  layui-btn-xs" lay-event="modify">修改</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>

    {{# } }}
    {{# } }}
</script>
<script type="text/html" id="img">
    <div><img src="{{d.icon}}" style="width:20px;height:20px"></div>
</script>
</html>